import {app} from 'electron'
export const devtool = ()=>{
      //本地加载vue3工具
  if (!app.isPackaged && !process.env.IS_TEST) {
    // Install Vue Devtools
    try {

      const { session } = require("electron");
      const path = require("path");
      session.defaultSession.loadExtension(
        path.resolve(__dirname, "../devTool")  //这个是刚刚build好的插件目录
      );
      // await installExtension(VUEJS_DEVTOOLS)
    } catch (e:any) {
      console.error('Vue Devtools failed to install:', e.toString())
    }
  }
} 